﻿using EzDesk.MVVMBase;

namespace EzDesk.DesktopClient.ViewContract
{
    public interface ILoginViewModel :IViewModel
    {
        bool IsViewEnable { get; set; }
        string ErrorMessage { get; set; }
        ILoginView View { get; set; }

        /// <summary>
        /// Returns the user-friendly name of this object.
        /// Child classes can set this property to a new value,
        /// or override it to determine the value on-demand.
        /// </summary>
        string DisplayName { get; }

        void Login(string userName, string password);
    }
}